package cn.hnucm.userservice.service.impl;

import cn.hnucm.userservice.entity.TbLog;
import cn.hnucm.userservice.mapper.TbLogMapper;
import cn.hnucm.userservice.service.TbLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * <p>
 * 系统日志 服务实现类
 * </p>
 *
 * @author zjl
 * @since 2021-12-08
 */
@Service
public class TbLogServiceImpl implements TbLogService {

    @Autowired
    private TbLogMapper tbLogMapper;
    @Override
    public List<TbLog> findTbLogById(int logId) {
        return tbLogMapper.findTbLogById(logId);
    }

    @Override
    public boolean addTbLog(TbLog tbLog) {
        return tbLogMapper.addTbLog(tbLog);
    }

    @Override
    public boolean updateTbLog(TbLog tbLog) {
        return tbLogMapper.updateTbLog(tbLog);
    }

    @Override
    public boolean deleteTbLog(int logId) {
        return tbLogMapper.deleteTbLog(logId);
    }
}
